package lzy.service.impl;

import lzy.entity.EnvironmentData;
import lzy.mapper.EnvironmentDataMapper;
import lzy.service.EnvironmentDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class EnvironmentDataServiceImpl implements EnvironmentDataService {
    @Autowired
    private EnvironmentDataMapper mapper;

    @Override
    public List<EnvironmentData> findAll() {
        return mapper.findAll();
    }

    @Override
    public EnvironmentData findLatest() {
        return mapper.findLatest();
    }

    @Override
    public List<String> findAllBaseIds() {
        return mapper.findAllBaseIds();
    }

    @Override
    public List<String> findAllRecordDates() {
        return mapper.findAllRecordDates();
    }

    @Override
    public List<EnvironmentData> findByFilter(String baseId, String recordDate) {
        return mapper.findByFilter(baseId, recordDate);
    }
} 